//音乐二进制文件 pcm_u8 格式, 可以用Audacity导出 https://blog.csdn.net/Z1576796635/article/details/130467429
#include "SoundData.h"; 
#include "XT_DAC_Audio.h"; //播放库

XT_Wav_Class ForceWithYou(Force);    

//使用gpio 25引脚
XT_DAC_Audio_Class DacAudio(25,0);
uint32_t DemoCounter=0; 

void setup() {
  Serial.begin(115200);
}

//循环播放声音
void loop() {
  DacAudio.FillBuffer();                // Fill the sound buffer with data
  if(ForceWithYou.Playing==false)       // if not playing,
    DacAudio.Play(&ForceWithYou);       //                play it, this will cause it to repeat and repeat...
  Serial.println(DemoCounter++);      // Showing that the sound will play as well as your code running here.
}
